#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"

void SLtest()
{
	SL* plist = SLinit();
	SLpushback(plist, 5);
	SLpushback(plist, 6);
	SLpushback(plist, 7);
	SLpushback(plist, 10);
	SLpushback(plist, 11);
	SLprint(plist);
	SLPushfront(plist, 15);
	SLPushfront(plist, 3);
	SLprint(plist);
	SLPopfront(plist);
	SLprint(plist);
	SLPopfront(plist);
	SLprint(plist);
	SLPopback(plist);
	SLprint(plist);
	SL* ret = DSLfind(plist, 7);
	DSLposinsert(ret, 5);
	SLprint(plist);
	if (ret)
	{
		DSLpospop(ret);
		return NULL;
	}
	
	SLprint(plist);
}

int main()
{
	SLtest();
	return 0;
}